﻿namespace Outlook.WorkItems.Extension.Manager.TeamCalendarManager
{
    public class WorkItemCalendarLink
    {
        private SynchronizeWorkItemsAction _synchronizeWorkItemsAction;

        /// <summary>
        /// MAPIFolder EntryID
        /// </summary>
        public string FolderEntryId { get; set; }
        /// <summary>
        /// MAPIFolder StoreID
        /// </summary>
        public string FolderStoreId { get; set; }
        /// <summary>
        /// Team Server Name
        /// </summary>
        public string TeamServerName { get; set; }
        /// <summary>
        /// Team Server Name
        /// </summary>
        public string TeamServerUri { get; set; }
        /// <summary>
        /// Team Project Name
        /// </summary>
        public string TeamProjectName { get; set; }
        /// <summary>
        /// Settings of create work item action
        /// </summary>
        public SynchronizeWorkItemsAction SynchronizeWorkItemsAction
        {
            get { return _synchronizeWorkItemsAction; }
            set
            {
                _synchronizeWorkItemsAction = value;
                if (_synchronizeWorkItemsAction != null)
                    _synchronizeWorkItemsAction.ParentLink = this;
            }
        }

    }
}
